package com.miaoke.service.impl;

import com.miaoke.entity.User;
import com.miaoke.service.UserService;

import java.util.Random;

public class UserServiceImpl implements UserService {
    @Override
    public User insert(User user) {
        System.out.println(user);
        user.setId(new Random().nextInt());
        return user;
    }
}
